<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="applicable-device" content="pc" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform" />
<title>店铺：${userEntity.nickName}</title>
<meta name="keywords" content="${dishesEntity.summary }" />
<meta name="description" content="${dishesEntity.summary } " />
<link href="<%=path %>/css/index.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/common1.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/replay.css?ver=1.11" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/button.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css"/>    
    
<script type="text/javascript" src="<%=path %>/js/jquery-1.12.4.min.js"></script>
<link href="<%=path %>/css/dishesDetail.css?ver=1" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-form.js"></script>
<script type="text/javascript" src="<%=path%>/js/global.js"></script>
	
<style>
.artical {
	margin: 0 176.500;
}

.articale_title {
	font-size: 48px;
	font-weight: 700;
	color: #2F4050;
	text-align: center;
}

.artical_content {
	font-size: 15px;
	line-height: 26px;
}

.artical_content img {
	width: 100%;
}

.artical_msg {
	text-align: center;
}

.img_topic {
	width: auto;
	height: 250px;
	max-width: 100%;
	max-height: 100%;
}

.hr_2 {
	
}
</style>
</head>

<body>
	<!--头部-->
	<jsp:include page="../include/head.jsp">
		<jsp:param value="content" name="head" />
	</jsp:include>

	<!--导航-->
	<jsp:include page="../include/nav.jsp">
		<jsp:param value="content" name="nav" />
	</jsp:include>


	<div class="h10"></div>
	<div class="h10"></div>
	<div class="h10"></div>


	<div class="artical" id="artical_div">
		<div class="details_food">
			<div class="d-left">
				<div class="name">
					<p>商家： ${userEntity.nickName }</p>
				</div>
				<div class="address">
					<p>
						地址： ${userEntity.address } <b></b>
					</p>
					<p>电话： ${userEntity.telPhone }</p>
					<p>营业时间： ${userEntity.workTime }</p>
				</div>
			</div>
			<div class="d-right">
				<div class="big">
					<div class="imgbox" style="height: 250px; width: 100%;">
						<img width="400" height="250" src="<%=path %>/${userEntity.topPic}">
					</div>
				</div>
			</div>
			<div class="h10"></div>
			<div >
			    <div class="name">
					<p><h2>美食列表：</h2></p><br/><br/>
				</div>
				<c:forEach items="${dishesEntities}" var="information">
					<ul class="arial" id="foodUl">
				        <li style="width: 240px;float: left;list-style: none;"><a href="<%=path %>/dishes/dishesDtail?id=${information.id}"><img src="<%=path%>${information.topPic}" width="218"
				                                                                     height="168" title="${information.name}"/></a>
				            <p>
				                <a href="<%=path %>/dishes/dishesDtail?id=${information.id}" target="_self" title="${information.name}" target="_blank" class="blue12">${information.name}</a><br/>
				                人均：<span class="cf60">${information.price}</span>元&nbsp;&nbsp;<br/>
				                访问量：<span class="cf60">${information.focuse}</span><br/>
				                发布时间：<span class="cf60">${fn:substring(information.createTime, 0, 19)}</span>
				            </p>
				        </li>
				    </ul>
			     </c:forEach>
			</div>
			<div class="clear"></div>
		</div>
	</div>
</body>
</html>
